/*
 ============================================================================
 Name		: BaseView.cpp
 Author	  : Zhang Jiawei
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CBaseView implementation
 ============================================================================
 */

#include "BaseView.h"
#include "BaseContainer.h"
#include <aknviewappui.h>

CBaseView::~CBaseView()
{
    if ( iContainer )
    {
        AppUi()->RemoveFromViewStack( *this, iContainer );
        delete iContainer;
        iContainer = NULL;
    }
}

void CBaseView::ConstructL()
{
    BaseConstructL();//(R_ESTOCKMAINGRID_ESTOCKMAINGRID_VIEW);
}

void CBaseView::HandleCommandL(TInt /*aCommand*/)
{   
}

void CBaseView::HandleClientRectChange()
{
    if ( iContainer )
    {
        iContainer->SetRect( ClientRect() );
    }
}


